package com.zaoniao.enstudy.domain.entity.bo;

import com.zaoniao.enstudy.infracore.constants.AppConstant;
import lombok.Data;

/**
 * 词汇表收藏下的词汇明细.
 *
 * @author llb
 */
@Data
public class VocabularyWordsBo {

    private Integer id;

    /**
     * 用户id,即OpenId
     */
    private String userId;

    /**
     * 单词词汇表Id,未必有
     */
    private Integer vocabularyId;

    /**
     * 单词
     */
    private String word;

    /**
     * 中文翻译
     */
    private String translation;

    /**
     * 音标
     */
    private String phoneticSymbol;

    /**
     * 音频地址.
     */
    private String pronunciation;

    public void setPronunciation (String pronunciation){
        this.pronunciation = AppConstant.AUDIO_PREFIX + pronunciation;
    }
}
